package cn.sc.summer.calculate.form;

import cn.sc.summer.calculate.enums.TaskStatusEnum;
import cn.sc.summer.constant.model.PageParam;
import cn.sc.summer.core.annotation.EnumValid;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 类名：更新定时任务表单
 *
 * @author a-xin
 * @date 2023/11/27 08:22
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "分页获取定时任务表单")
@EqualsAndHashCode(callSuper = true)
public class GetTaskInfoForm extends PageParam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 任务ID
     */
    @ApiModelProperty(value = "任务ID")
    private String jobId;

    /**
     * 定时任务名称
     */
    @ApiModelProperty(value = "定时任务名称")
    private String jobName;

    /**
     * 定时任务分组
     */
    @ApiModelProperty(value = "定时任务分组")
    private String jobGroup;

    /**
     * 任务状态
     *
     * @see TaskStatusEnum
     */
    @ApiModelProperty(value = "任务状态", notes = "cn.sc.summer.calculate.enums.TaskStatusEnum")
    @EnumValid(message = "不存在对应的任务状态！", target = TaskStatusEnum.class)
    private Integer jobStatus;

}
